/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package character_7;

import character_7.jiekou.Diver;

/**
 *
 * @author Administrator
 */
public class Submarine extends Boat implements Diver{

    public Submarine(String name) {
        super(name);
    }

    @Override
    public void dive(){
        System.out.println("潜水艇" + name+"潜行");
    }
    
}
